// 不是纯函数（影响力外界的变量-副作用；给了相同输入，没有返回相同输出）
let payload = 0
const addOne = (number) => {
    payload++
    return number + payload
}

console.log(addOne(1)) // 2
console.log(addOne(1)) // 3
console.log(addOne(1)) // 4


// 纯函数
const addOne1 = (number) => {
    return number + 1
}

console.log(addOne1(1)) // 2
console.log(addOne1(1)) // 2
console.log(addOne1(1)) // 2

const [b, fn3] = [12, function () {}]

console.log('数组解构',b, fn3)